//
//  DataItem.h
//  KG
//
//  Created by Eugene Braginets on 27.03.12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>

@interface DataItem : NSObject <MKAnnotation, NSCoding>

@property (strong, nonatomic) NSString* name;
@property (strong, nonatomic) NSString* itemid;
@property (strong, nonatomic) UIImage* image;
@property (strong, nonatomic) NSString* imageAddr;
@property (strong, nonatomic) NSString* urlstring;
@property (strong, nonatomic) NSString* text;
@property (strong, nonatomic) NSString* objectid;
@property (strong, nonatomic) NSString *value;

- (void)loadImage: (CGSize) size;
- (UIImage *)scale:(UIImage *)image toSize:(CGSize)size;
@end
